﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using System.Data;

public partial class help_tour : FBasePage
{
    // Fields

    public string strNav = "";
    public string strValue = "";
    public string strWebName = "";

    // Methods
    private void initNavigation()
    {
        StringBuilder builder = new StringBuilder();
        string abbreviation = "";
        if (base.ASSystem != null)
        {
            abbreviation = base.ASSystem.abbreviation;
        }
        builder.Append("<li  class=\"current\"  ><a href=\"/help/tour.aspx\">玩转" + abbreviation + "</a><span></span></li>");
        builder.Append("<li ><a href=\"/help/faqs.aspx\">常见问题</a><span></span></li>");
        builder.Append("<li><a href=\"/help/asdht.aspx\">什么是" + abbreviation + "</a><span></span></li>");
        builder.Append("<li><a href=\"/help/api.aspx\">开发api</a><span></span></li>");
        this.strNav = builder.ToString();
    }

    private void initPage()
    {
        Maticsoft.BLL.Page page = new Maticsoft.BLL.Page();
        string strWhere = " id='help_tour'";
        DataSet list = page.GetList(strWhere);
        if (((list != null) && (list.Tables.Count > 0)) && (list.Tables[0].Rows.Count > 0))
        {
            this.strValue = list.Tables[0].Rows[0]["Value"].ToString().Replace("\\\"", "\"");
        }
    }

    private void initWebName()
    {
        Maticsoft.BLL.System system = new Maticsoft.BLL.System();
        string strWhere = "";
        DataSet list = system.GetList(strWhere);
        if (((list != null) && (list.Tables.Count > 0)) && (list.Tables[0].Rows.Count > 0))
        {
            if ((list.Tables[0].Rows[0]["abbreviation"] == null) || (list.Tables[0].Rows[0]["abbreviation"].ToString() == ""))
            {
                this.strWebName = "艾尚团购";
            }
            else
            {
                this.strWebName = list.Tables[0].Rows[0]["abbreviation"].ToString();
            }
        }
    }

    protected override void OnLoad(EventArgs e)
    {
        base.OnLoad(e);
        base.SetTitle("团购达人");
        if (!this.Page.IsPostBack)
        {
            this.initNavigation();
            this.initPage();
            this.initWebName();
        }
    }

}